#!/bin/bash
SERVERS=("192.168.1.10" "192.168.1.11")
COMMAND="hostname && free -h"
for ip in "${SERVERS[@]}"; do
  echo -e "\n\033[32m===== $ip =====\033[0m"
  ssh -q admin@$ip "$COMMAND"
done